package com.campus.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BusVO {
    private Long id;           // 班车ID
    private String busNumber;  // 班车编号
    private String routeInfo;  // 完整路线信息(站点间用箭头分隔)
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime firstTime;  // 首班车时间
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime lastTime;   // 末班车时间
    private Integer intervalMinutes;// 间隔分钟数
    private String driverName; // 司机姓名
    private String driverPhone; // 司机电话
    private Integer capacity;   // 座位数
    private Integer status;     // 状态(0:停运,1:运营)
}
